package com.kouxin.appaccount.software;

import java.io.Serializable;
import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class SoftwareDao extends HibernateDaoSupport {

	public void insert(Software software) {
		this.getHibernateTemplate().save(software);
	}
	
	@SuppressWarnings("unchecked")
	public List<Software> findByExample(Software software) {
		return (List<Software>)this.getHibernateTemplate().findByExample(software);
	}
	
	public Software get(Serializable id) {
		return (Software) this.getHibernateTemplate().get(Software.class, id);
	}
	
	public void update(Software software) {
		this.getHibernateTemplate().update(software);
	}
	
	public void delete(Software software) {
		this.getHibernateTemplate().delete(software);
	}
}
